package solver;

import java.util.List;

public class UtilityResults {
	private double[][] theta;
	private double[] utility;
	
	public UtilityResults(double[][] in_theta, double[] utility) {
		this.setUtility(utility);
		this.setTheta(in_theta);
	}

	/**
	 * @param utility the utility to set
	 */
	public void setUtility(double[] utility) {
		this.utility = new double[utility.length];
		for(int i = 0; i<utility.length; i++) {
			this.utility[i] = utility[i];
		}
	}

	/**
	 * @return the utility
	 */
	public double[] getUtility() {
		double[] out = new double[utility.length];
		for(int i = 0; i<utility.length; i++) {
			out[i] = utility[i];
		}

		return out;
	}

	
	
	/**
	 * @param theta the theta to set
	 */
	public void setTheta(double[][] theta) {
		this.theta = new double[theta.length][theta.length];
		for (int i=0; i<theta.length; i++) {
			for (int j=0; j<theta.length; j++) {
				this.theta[i][j] = theta[i][j];
			}	
		}
	}

	/**
	 * @return the theta
	 */
	public double[][] getTheta() {
		double[][] out = new double[theta.length][theta.length];
		for (int i=0; i<theta.length; i++) {
			for (int j=0; j<theta.length; j++) {
				out[i][j] = this.theta[i][j];
			}	
		}
		return theta;
	}
}
